package com.demo.dao;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.demo.model.Marker;

public class MarkerDao extends HibernateDaoSupport {
	protected final Log log = LogFactory.getLog(getClass());
	private Class persistentClass;

	public MarkerDao() {

		super();
		this.persistentClass = Marker.class;

	}

	@SuppressWarnings("unchecked")
	public List<Marker> getAll() {

		return super.getHibernateTemplate().loadAll(this.persistentClass);
	}

}
